package encaps.action;

import encaps.entities.Grant;
import encaps.resources.Labels;
import encaps.utils.XMLHelper;
import org.jdom.Element;

public class MainPageAction extends Action {

    public static final String MainPage = "mainPage";
    private ActionContext actionContext;

    public MainPageAction(ActionContext context, Grant requiredGrant) {
        this.actionContext = context;
        this.requiredGrant = requiredGrant;
    }
    private Long id;

    @Override
    public Element execute() throws ActionExecutionException {
        try {

            Element response = XMLHelper.createTextMessage(Labels.getLabel(Labels.WELCOME));
            return response;

        } catch (Exception ex) {
            throw new ActionExecutionException("System malfunction", ex);
        }
    }
}
